﻿@model HQPad.Controllers.UserModel

@{
    ViewBag.Title = "Edit user " + Model.User.UserName;
}

@section PageScripts {
}

<h1>Edit user @Html.Raw(Model.User.UserName)</h1>

<section class="content">
@using (Html.BeginForm("Edit","User", new { userName = Model.User.UserName }, FormMethod.Post))
{
    <fieldset class="block form form-wide-label">
        <legend>Basics</legend>

        <div class="field-item">
            <div class="label">@Html.Label("email", "Email")</div>
            @Html.TextBox("email", Model.User.Email)
            @Html.ValidationMessage("email")
        </div>

        <div class="field-item">
            <div class="label">@Html.Label("enabled", "Enabled")</div>
            @Html.CheckBox("enabled", Model.User.IsApproved)
        </div>

        <div class="field-item">
            <div class="label">@Html.Label("lockedOut", "Locked out")</div>
            @Html.CheckBox("lockedOut", Model.User.IsLockedOut)
        </div>

        <p><input type="submit" value="Save" /></p>
    </fieldset>
}


</section>